﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;
using TinyERP.Framework.Controls;
using TinyERP.Framework;


namespace TinyERPApp
{
    public class AutoUpdateForm : KryptonForm
    {
       
        public AutoUpdateForm()
        {
            InitializeComponent();
        }

        private KLabel lblMessage;
        private KButton btnOK;
        private KButton btnCancel;
        private ProgressBar progressBar;
       
        
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.lblMessage = new TinyERP.Framework.Controls.KLabel();
            this.btnOK = new TinyERP.Framework.Controls.KButton();
            this.btnCancel = new TinyERP.Framework.Controls.KButton();
            this.progressBar = new System.Windows.Forms.ProgressBar();
            this.SuspendLayout();
            // 
            // lblMessage
            // 
            this.lblMessage.AutoSize = true;
            this.lblMessage.Location = new System.Drawing.Point(12, 9);
            this.lblMessage.Name = "lblMessage";
            this.lblMessage.ResourceKey = null;
            this.lblMessage.ResourceModuleKey = null;
            this.lblMessage.Size = new System.Drawing.Size(69, 13);
            this.lblMessage.TabIndex = 0;
            this.lblMessage.Text = "Downloading";
            // 
            // btnOK
            // 
            this.btnOK.AutoSize = true;
            this.btnOK.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.btnOK.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.Standalone;
            this.btnOK.Image = null;
            this.btnOK.Location = new System.Drawing.Point(224, 96);
            this.btnOK.Name = "btnOK";
            this.btnOK.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.Global;
            this.btnOK.ResourceKey = null;
            this.btnOK.ResourceModuleKey = null;
            this.btnOK.Size = new System.Drawing.Size(27, 24);
            this.btnOK.TabIndex = 1;
            this.btnOK.Text = "OK";
            this.btnOK.Values.ExtraText = "OK";
            this.btnOK.Values.Image = null;
            this.btnOK.Values.ImageStates.ImageCheckedNormal = null;
            this.btnOK.Values.ImageStates.ImageCheckedPressed = null;
            this.btnOK.Values.ImageStates.ImageCheckedTracking = null;
            this.btnOK.Values.Text = "";
            // 
            // btnCancel
            // 
            this.btnCancel.AutoSize = true;
            this.btnCancel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.btnCancel.ButtonStyle = ComponentFactory.Krypton.Toolkit.ButtonStyle.Standalone;
            this.btnCancel.Image = null;
            this.btnCancel.Location = new System.Drawing.Point(273, 96);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.PaletteMode = ComponentFactory.Krypton.Toolkit.PaletteMode.Global;
            this.btnCancel.ResourceKey = null;
            this.btnCancel.ResourceModuleKey = null;
            this.btnCancel.Size = new System.Drawing.Size(47, 24);
            this.btnCancel.TabIndex = 2;
            this.btnCancel.Text = "Cancel";
            this.btnCancel.Values.ExtraText = "Cancel";
            this.btnCancel.Values.Image = null;
            this.btnCancel.Values.ImageStates.ImageCheckedNormal = null;
            this.btnCancel.Values.ImageStates.ImageCheckedPressed = null;
            this.btnCancel.Values.ImageStates.ImageCheckedTracking = null;
            this.btnCancel.Values.Text = "";
            // 
            // progressBar
            // 
            this.progressBar.Location = new System.Drawing.Point(15, 39);
            this.progressBar.Name = "progressBar";
            this.progressBar.Size = new System.Drawing.Size(500, 14);
            this.progressBar.TabIndex = 3;
            // 
            // AutoUpdateForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(537, 144);
            this.Controls.Add(this.progressBar);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.btnOK);
            this.Controls.Add(this.lblMessage);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.Name = "AutoUpdateForm";
            this.Text = "Auto update";
            this.Load += new System.EventHandler(this.AutoUpdateForm_Load);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private void AutoUpdateForm_Load(object sender, EventArgs e)
        {
            this.lblMessage.Text = AppResourceManager.GetInstance().GetString("DownloadingNewVersion");
            
        }

       
    }
}
